package com.fatmeraid.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "商品图片实体类")
@TableName("product_image")
public class ProductImage {
	@Schema(description = "图片id")
	@TableId(type = IdType.ASSIGN_ID, value = "image_id")
	private Long imageId;

	@Schema(description = "产品ID")
	private Long productId;

	@Schema(description = "图片路径")
	private String imageUrl;

	@Schema(description = "排序（数字越小越靠前）")
	private Integer sortOrder;

	@Schema(description = "上传时间")
	private LocalDateTime uploadTime;

}
